From 9763e3e9d320b5128f374117d0ff95ab8cc7f626 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 7 Aug 2023 23:36:36 +0200 Subject: [PATCH] luci-base: runtime.uc: fix error500() invocation on theme failure In case no single theme could be loaded successfully, the runtime class failed to properly invoke the `error500()` method, which is only available through the passed environment at this point. Signed-off-by: Jo-Philipp Wich --- modules/luci-base/ucode/runtime.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/ucode/runtime.uc b/modules/luci-base/ucode/runtime.uc index e460127e2c..f14bf74480 100644 --- a/modules/luci-base/ucode/runtime.uc +++ b/modules/luci-base/ucode/runtime.uc @@ -173,7 +173,7 @@ export default function(env) { } if (!media) - error500(`Unable to render any theme header template, last error was:\n${status}`); + env.dispatcher.error500(`Unable to render any theme header template, last error was:\n${status}`); } self.env.media = media; -- 2.30.2